package com.zelix;

import java.util.Hashtable;
import java.util.StringTokenizer;
import java.util.Vector;

public final class dp implements m5 {

    private final String a;
    private final String b;
    private String c;
    private final int d;
    private n5 g;
    static final Hashtable e;
    public static final dp f;
    public static final dp h;
    private static String z[];

    static {
        z = new String[5];
        z[0] = "()";
        z[1] = "Null return type in ";
        z[2] = ",";
        z[3] = "main([Ljava/lang/String;)V";
        z[4] = "<clinit>()V";
        e = new Hashtable(17);
        f = new dp(z[4]);
        h = new dp(z[3]);
        e.put("void", "V");
        e.put("byte", "B");
        e.put("char", "C");
        e.put("double", "D");
        e.put("float", "F");
        e.put("int", "I");
        e.put("long", "J");
        e.put("short", "S");
        e.put("boolean", "Z");
    }

    public dp(m5 m5_1) {
        super();
        if (m5_1 instanceof dp) {
            dp dp1 = (dp) m5_1;
            a = dp1.a;
            b = dp1.b;
            c = dp1.c;
        } else if (m5_1 instanceof n5) {
            n5 n5_1 = (n5) m5_1;
            a = n5_1.c();
            b = n5_1.a();
            c = n5_1.b();
            lx.b(c, z[1] + a + b + "'");
        } else {
            a = null;
            b = null;
            c = null;
        }
        d = (a + b + c).hashCode();
    }

    public dp(String s) {
        this(s.substring(0, s.indexOf("(")), s.substring(s.indexOf("(")));
    }

    public dp(String s, String s1) {
        a = s;
        b = a(s1);
        c = s1.substring(b.length());
        d = (s + b + c).hashCode();
    }

    public dp(String s, String s1, String s2) {
        a = s;
        b = s1;
        c = s2;
        d = (s + s1 + s2).hashCode();
    }

    private dp(String s, String s1, String s2, int i, n5 n5_1) {
        a = s;
        b = s1;
        c = s2;
        d = i;
        g = n5_1;
    }

    public Object clone() {
        return new dp(a, b, c, d, g);
    }

    public static String c(String s, Hashtable hashtable) {
        StringBuffer stringbuffer;
        int i;
        String s1;
        int k;
        boolean flag;
        flag = tb.b;
        stringbuffer = new StringBuffer();
        i = 0;
        int j = s.indexOf("[");
        if (j > -1) {
            i = (s.length() - j) / 2;
            s1 = s.substring(0, j);
        } else {
            s1 = s;
        }
        for (k = 0; k < i; k++) {
            stringbuffer.append("[");
        }
        StringTokenizer stringtokenizer;
        int l;
        StringBuffer stringbuffer1;
        int i1;
        stringtokenizer = new StringTokenizer(s1, ".");
        l = stringtokenizer.countTokens();
        if (l == 1) {
            String s2 = stringtokenizer.nextToken();
            String s3 = (String) e.get(s2);
            if (s3 != null) {
                stringbuffer.append(s3);
            } else {
                s2 = (String) px.a(s2, hashtable);
                stringbuffer.append("L");
                stringbuffer.append(s2);
                stringbuffer.append(";");
            }
        } else {
            stringbuffer1 = new StringBuffer();
            for (i1 = 0; i1 < l; i1++) {
                if (i1 > 0)
                    stringbuffer1.append("/");
                stringbuffer1.append(stringtokenizer.nextToken());
            }
            String s4 = (String) px.a(stringbuffer1.toString(), hashtable);
            stringbuffer.append("L");
            stringbuffer.append(s4);
            stringbuffer.append(";");
        }
        return stringbuffer.toString();
    }

    public boolean equals(Object obj) {
        if (obj == null || !(obj instanceof dp)) {
            return false;
        } else {
            dp dp1 = (dp) obj;
            return d == dp1.d && a.equals(dp1.a) && b.equals(dp1.b) && c.equals(dp1.c);
        }
    }

    public String b() {
        return b + c;
    }

    public static String a(String s, Hashtable hashtable) {
        StringBuffer stringbuffer;
        StringTokenizer stringtokenizer;
        if (s == null || s.length() == 0)
            return z[0];
        stringbuffer = new StringBuffer();
        stringbuffer.append("(");
        stringtokenizer = new StringTokenizer(s, ",");
        while (stringtokenizer.hasMoreTokens()) {
            String s1 = stringtokenizer.nextToken().trim();
            stringbuffer.append(c(s1, hashtable));
        }
        return stringbuffer.append(')').toString();
    }

    public n5 a() {
        if (g == null)
            g = new n5(a, b, c);
        return g;
    }

    public String c() {
        return a;
    }

    public String d() {
        return b;
    }

    public String a(Hashtable hashtable) {
        return b(b, hashtable);
    }

    public static final String a(String s) {
        String s1 = s.substring(0, s.lastIndexOf(")") + 1);
        return s1;
    }

    public String e() {
        return c;
    }

    public String c(Hashtable hashtable) {
        return d(c, hashtable);
    }

    public String f() {
        Vector vector;
        StringBuffer stringbuffer;
        int i;
        int j;
        vector = is.c(b);
        stringbuffer = new StringBuffer();
        i = vector.size();
        for (j = 0; j < i; j++) {
            stringbuffer.append((String) vector.get(j));
            if (j < i - 1)
                stringbuffer.append(z[2]);
        }
        return a + "(" + stringbuffer.toString() + ")";
    }

    public String b(Hashtable hashtable) {
        return a + a(hashtable);
    }

    public String d(Hashtable hashtable) {
        return c(hashtable) + " " + a + a(hashtable);
    }

    public int hashCode() {
        return d;
    }

    public String toString() {
        return is.e(c) + " " + f();
    }

    public static String d(String s, Hashtable hashtable) {
        String s1 = "";
        String s2 = is.a(s, false, false);
        if (s2.endsWith("]")) {
            int i = s2.indexOf('[');
            s1 = s2.substring(i);
            s2 = s2.substring(0, i);
        }
        String s3 = (String) px.a(s2, hashtable);
        return s3.replace('/', '.') + s1;
    }

    public static String b(String s, Hashtable hashtable) {
        StringBuffer stringbuffer;
        Vector vector;
        int i;
        int j;
        stringbuffer = new StringBuffer();
        stringbuffer.append('(');
        vector = is.b(s);
        i = vector.size();
        for (j = 0; j < i; j++) {
            String s1 = (String) vector.elementAt(j);
            stringbuffer.append(d(s1, hashtable));
            if (j + 1 < i)
                stringbuffer.append(z[2]);
        }
        return stringbuffer.append(')').toString();
    }
}